package 输入方案;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author zc
 * @version 1.0
 * @date 2021/8/31 16:02
 */

//输入描述：输入数组的元素个数，换行输入数组元素
public class Demo04 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
            int m = scanner.nextInt();
            int[] ints = new int[m];
            for(int i =0;i<m;i++)
            {
                ints[i]=scanner.nextInt();
            }
            System.out.println(ints.length);
            System.out.println(Arrays.toString(ints));
        }
        scanner.close();
    }
}
